/*
 * postmodeISCPpacketForSend.java
 *
 * Created on January 22, 2007, 8:09 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package net.sf.iSnake.core;

import java.io.Serializable;

/**
 *
 * @author Jitendra
 */

public class postmodeISCPpacketForSend implements Serializable    {
    private Short postmodeCommandSend;                      // Commands packets that will be transfered via SEND thread
    
    private Short player_id;                                // id of the player for which dx,dy,... corresponds to
    private Short dx;                                       // Change in x coordinate
    private Short dy;                                       // Change in y coordinate
    
    private Long score;
    private Short lives;
    
    public postmodeISCPpacketForSend()  {
        this.postmodeCommandSend = 0;
        this.player_id = null;
        this.dx = new Short("0");
        this.dy = new Short("0");
        this.score = null;
        this.lives = null;
    }
    
    public postmodeISCPpacketForSend(Short postmodeCommandSend)  {
        this.postmodeCommandSend = postmodeCommandSend;
    }
    
    public Short getPostmodeCommandSend() {
        return postmodeCommandSend;
    }
    
    public void setPostmodeCommandSend(Short postmodeCommandSend) {
        this.postmodeCommandSend = postmodeCommandSend;
    }
    
    public Short getDx() {
        return dx;
    }
    
    public void setDx(Short dx) {
        this.dx = dx;
    }
    
    public Short getDy() {
        return dy;
    }
    
    public void setDy(Short dy) {
        this.dy = dy;
    }
    
    public void setDxDy(Short dx,Short dy)  {
        this.setDx(dx);
        this.setDy(dy);
    }
    
    public Long getScore() {
        return score;
    }
    
    public void setScore(Long score) {
        this.score = score;
    }
    
    public Short getLives() {
        return lives;
    }
    
    public void setLives(Short lives) {
        this.lives = lives;
    }

    public Short getPlayer_id() {
        return player_id;
    }

    public void setPlayer_id(Short player_id) {
        this.player_id = player_id;
    }
    
}

